<template>
  <div class="home" style="height: 100vh">
    <mdlayout></mdlayout>
  </div>
</template>

<script>
import mdlayout from '../layout/index';
export default {
  name: 'HomeView',
  data() {
    return {
      msg: '',
    };
  },
  components: {
    mdlayout,
  },
  created() {
    var str = localStorage.getItem('qiu');
    this.msg = str;
  },
  methods: {
    logout() {
      localStorage.removeItem('token');
      this.$router.replace({ name: 'login' });
    },
    save() {
      localStorage.setItem('qiu', this.msg);
    },
  },
};
</script>
